/*
    设备管理
 */

import request from '@/router/axios'

//设备的展示和查找
export function equipList(obj) {
    return request({
        url: '/campus/device/page',
        method: 'get',
        params: obj
    })
}
//设备的新增
export function addEquip(obj) {
    return request({
        url: 'campus/device',
        method: 'post',
        data: obj
    })
}
//根据id查询
export function searchEquip(id) {
    return request({
        url: '/campus/device/' + id,
        method: 'get',
        params: id
    })
}
//设备的修改
export function editEquip(obj) {
    return request({
        url: '/campus/device',
        method: 'put',
        data: obj
    })
}

//设备的删除
export function delEquip(id) {
    return request({
        url: 'campus/device/' + id,
        method: 'delete',
    })
}

//设备在线状态
export function statusEquip(ids) {
    return request({
        url: 'campus/device/selectByOnlyDevice?deviceIds=' + ids,
        method: 'get',
        // params: ids
    })
}


